﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DisplayBills.aspx.cs" Inherits="NWBA_Public.DisplayBills" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" runat="server">

    <p>
        Select account:&nbsp;
        <asp:DropDownList ID="dropdownlistAccounts" runat="server" OnSelectedIndexChanged="dropdownlistAccounts_SelectedIndexChanged" AutoPostBack="true">
        </asp:DropDownList>
    </p>
    <asp:Panel runat="server" id="panelStatements">
        <asp:GridView ID="gridviewTransactions" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="dataSourceTransactions" ForeColor="#333333" GridLines="None" PageSize="4">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="BillPay.aspx?id={0}" NavigateUrl="~/WebForms/BillPay.aspx" Text="Modify" />
                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                <asp:BoundField DataField="PayeeName" HeaderText="PayeeName" SortExpression="PayeeName" />
                <asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" />
                <asp:BoundField DataField="ScheduleDate" HeaderText="ScheduleDate" SortExpression="ScheduleDate" />
                <asp:BoundField DataField="Period" HeaderText="Period" SortExpression="Period" />
                <asp:BoundField DataField="ModifyDate" HeaderText="ModifyDate" SortExpression="ModifyDate" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <asp:ObjectDataSource ID="dataSourceTransactions" runat="server" SelectMethod="DisplayBills" TypeName="NWBA_Public.BillRepository">
            <SelectParameters>
                <asp:ControlParameter ControlID="dropdownlistAccounts" Name="accountID" PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </asp:Panel>

</asp:Content>
